package src.com.doit.Demo03;

public class Student {
    private String name;
    private int age;
    private char sex;
    private boolean isLoveJava;

    public void study()
    {
        System.out.println("学习");
    }

    public Student(String name, int age, char sex, boolean isLoveJava) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.isLoveJava = isLoveJava;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }

    public boolean isLoveJava() {
        return isLoveJava;
    }

    public void setLoveJava(boolean isLoveJava) {
        this.isLoveJava = isLoveJava;
    }
    public void show()
    {
        System.out.println(name+" "+age+" "+sex+" "+isLoveJava);
    }

}
